﻿using Common.Views;
using StructureMap;
using WebApp.Services;

namespace WebApp.Common
{
	public static class UserContext
	{
		public static MemberView GetCurrentUser()
		{
			return ObjectFactory.GetInstance<IUserSession>().GetCurrentUser();
		}

        public static MemberView GetAnonymousUser()
        {
            return ObjectFactory.GetInstance<IUserSession>().GetAnonymousUser();
        }
	}
}